package com.example.japinhands

import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
import android.widget.Toast
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
class JApplication : Application() {
    companion object {
        @SuppressLint("StaticFieldLeak")
        lateinit var context: Context

        fun showToast(msg: String) = Toast.makeText(
            context,
            msg,
            Toast.LENGTH_SHORT
        ).show()

    }
    override fun onCreate() {
        super.onCreate()
        context = applicationContext
    }
}